<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <meta http-equiv="X-UA-Compatible" content="ie=edge" />
  <title>Document</title>
  <style scoped>
    body,
    html {
      padding: 0;
      margin: 0;
    }

    @page {
      margin: 0px;
    }

    ul,
    li {
      list-style: none;
    }

    ul {
      margin-left: -40px;
      padding-bottom: 80px;
    }

    .title {
      text-align: center;
      margin-bottom: 10px;
      font-size: 16px;
    }

    li {
      font-size: 12px;
      margin-top: 5px;
    }

    .money {
      font-size: 16px;
    }

    .qrcode {
      margin-left: -20px;
    }
  </style>
</head>

<body id="bd"></body>

<script type="module">
  const { ipcRenderer } = require('electron')
  window.onload = () => {
    ipcRenderer.on('webview-print-render', (event, info) => {
      // 执行渲染
      document.getElementById('bd').innerHTML = info.html
      ipcRenderer.sendToHost('webview-print-do')
    })
  }
</script>
</html>